import request from '@/utils/request.js'

// 积分明细
export function get_score_list(data){
	return request({
		url:"/user/score_list",
		method:'post',
		data
	})
}

/**
 * 分享社群-获取分享列表和分享获得的积分
 */
export function get_my_share_details(data){
	return request({
		url:"/score/get_my_share_details",
		method:'get',
		data
	})
}

// 分享社群

export function shareSub(data){
	return request({
		url: "/score/share",
		method: 'post',
		data
	})
}

// 积分商城列表
export function getGoodsList(data){
	return request({
		url: "/goods/getlist",
		method: 'post',
		data
	})
}

// 积分商城分类
export function getGoodsCate(){
	return request({
		url: "/goods/getcate",
		method: 'get'
	})
}

// 积分商城详情
export function goodsDetailsApi(data){
	return request({
		url: "/goods/detail",
		method: 'post',
		data
	})
}

// 积分兑换下单
export function huodouOrder(data){
	return request({
		url: "/order/pay/huodouOrder",
		method: 'post',
		data
	})
}

// 积分兑换订单列表
export function huodouList(data){
	return request({
		url: "/goods/huodouList",
		method: 'get',
		data
	})
}

// 积分兑换订单详情
export function huodouDetail(data){
	return request({
		url: "/goods/huodouDetail",
		method: 'post',
		data
	})
}

/**
 * 积分竞猜
 */
// 列表
export function getScoreGuessList(data){
	return request({
		url: "/scoreguess/getlist",
		method: 'post',
		data
	})
}

// 详情
export function guess_detail(data){
	return request({
		url: "/scoreguess/guess_detail",
		method: 'get',
		data
	})
}

// 我的列表
export function get_my_score_guess_list(data){
	return request({
		url: "/scoreguess/get_my_score_guess_list",
		method: 'post',
		data
	})
}

// 参与竞猜
export function join_guess(data){
	return request({
		url: "/scoreguess/join_guess",
		method: 'post',
		data
	})
}

// 获取指定竞猜的中奖记录
export function guess_success(data){
	return request({
		url: "/scoreguess/guess_success",
		method: 'post',
		data
	})
}

// 获取我的所有竞猜参与记录
export function get_my_guess(data){
	return request({
		url: "/scoreguess/get_my_guess",
		method: 'post',
		data
	})
}